import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/wordExport",
    name: "wordExport",
    component: Home,
    redirect: {
      name: "QiSuZhuang"
    },
    children: [
      {
        path: "QiSuZhuang",
        name: "QiSuZhuang",
        component: () =>
          import(/* webpackChunkName: "QiSuZhuang" */ "../views/QiSuZhuang.vue")
      },
      {
        path: "SSCL",
        name: "SSCL",
        component: () =>
          import(/* webpackChunkName: "SSCL" */ "../views/SSCL.vue")
      },
      {
        path: "UserManager",
        name: "UserManager",
        component: () =>
          import(
            /* webpackChunkName: "UserManager" */ "../views/UserManager.vue"
          )
      },
      {
        path: "Baidu",
        name: "Baidu",
        component: () =>
          import(/* webpackChunkName: "Baidu" */ "../views/Baidu/index")
      },
      {
        path: "Ziru",
        name: "Ziru",
        component: () =>
          import(/* webpackChunkName: "Ziru" */ "../views/Ziru/index")
      }
    ]
  }
];

const router = new VueRouter({
  routes
});

export default router;
